package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;

/**
 * @author: dh
 * @date: 2023-10-25 10:14
 * 创建一个类实现业务层接口，并实现save方法.
 */
public class BookServiceImpl implements BookService {

    // 1.声明属性
    private BookDao bookDao;

    @Override
    public void save() {

        System.out.println("book service save ...");
        bookDao.save();
    }

    // 2. 提供一个set方法
    public void setBookDao(BookDao bookDao) {

        this.bookDao = bookDao;
    }
}
